Release 10.1A: OpenEdge Data Management:
SQL Reference


GREATEST

Returns the greatest value among the values of the given expressions.

Syntax

GREATEST ( expression , expression ... ) 

Example

This example illustrates the GREATEST function:

SELECT cust_no, last_name, 
    GREATEST (ADD_MONTHS (start_date, 10), SYSDATE) 
    FROM customer ; 

Notes

Compatibility

Progress extension


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095